package com.dmzc.stage2.chapter10;

import java.util.Iterator;
import java.util.Map;
import java.util.Properties;

public class TestClassLoader {
    public static void main(String[] args) {
        System.out.println("Bootstrap:"+String.class.getClassLoader());
        Properties properties = System.getProperties();
        Iterator it=properties.entrySet().iterator();
        while (it.hasNext()){
            Map.Entry entry=(Map.Entry) it.next();
            System.out.println(entry.getKey()+":"+entry.getValue());
        }
        System.out.println("===========启动类加载器============");
        System.out.println(System.getProperty("sun.boot.class.path"));
        System.out.println("===========扩展类加载器============");
        System.out.println(System.getProperty("java.ext.dirs"));
        System.out.println("===========系统类加载器============");
        System.out.println(System.getProperty("java.class.path"));
    }
}
